﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
//ExternalProcess
namespace DockSample
{
    class ExternalInterfaceOut : ObjectDiagram
    {
        private string uplevelDiagramId;
        public string UplevelDiagramId
        {
            get { return uplevelDiagramId; }
            set { uplevelDiagramId = value; }
        }
        public ExternalInterfaceOut(Point point, int width = 140, int height = 80)
            : base(point, width, height)
        {

        }

        public override void Drawing(Graphics graphics, DummyModelForm m)
        {
            int distance = 5;
            graphics.DrawEllipse(new Pen(Color.Brown, 1), new Rectangle(upLeftpoint.X, upLeftpoint.Y, width, height));
            graphics.DrawEllipse(new Pen(Color.Brown, 1), new Rectangle(upLeftpoint.X + distance, upLeftpoint.Y + distance, width - 2 * distance, height - 2 * distance));
            graphics.FillEllipse(new SolidBrush(Color.Black), new Rectangle(upLeftpoint.X + distance, upLeftpoint.Y + distance, width - 2 * distance, height - 2 * distance));
            //graphics.DrawString(this.name, drawFont, drawBrush, new Point(upLeftpoint.X, upLeftpoint.Y + height));
            base.Drawing(graphics, m);
        }
    }
}
